<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<html>
  <head>
    <title>本次测试得分情况：</title>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
  </head>
  <body background="ceshi2.jpg">
    <%
     int examResult=0;
     String str1=request.getParameter("1");
     String str2=request.getParameter("2");
     String str3=request.getParameter("3");
     String str4=request.getParameter("4");
     
     if(str1==null)
       str1=" ";
     if(str2==null)
       str2=" ";
     if(str3==null)
       str3=" ";
     if(str4==null)
       str4=" ";
       
     if(str1.equals("A"))
       examResult++;
     if(str2.equals("B"))
       examResult++;
     if(str3.equals("A"))
       examResult++;
     if(str4.equals("B"))
       examResult++;  
     %>
     
    <h3 align="center">本次测试结果是：</h3>
    <p align="center"><%=examResult*100/4 %>分</p>
  </body>
</html>
